From: Keir Fraser Date: Thu, 16 Dec 2010 18:37:30 +0000 (+0000) Subject: x86: move early page fault code into .init.text X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ab134ffcc5ca8edc3678aa1429e281e47c42462d;p=xen.git x86: move early page fault code into .init.text Signed-off-by: Jan Beulich --- diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 2eedfc3769..f0843d5e19 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1317,7 +1317,7 @@ asmlinkage void do_page_fault(struct cpu_user_regs *regs) * during early boot (an issue was seen once, but was most likely a hardware * problem). */ -asmlinkage void do_early_page_fault(struct cpu_user_regs *regs) +asmlinkage void __init do_early_page_fault(struct cpu_user_regs *regs) { static int stuck; static unsigned long prev_eip, prev_cr2; diff --git a/xen/arch/x86/x86_32/entry.S b/xen/arch/x86/x86_32/entry.S index 60642d3f6a..4d34b90dd5 100644 --- a/xen/arch/x86/x86_32/entry.S +++ b/xen/arch/x86/x86_32/entry.S @@ -549,6 +549,7 @@ ENTRY(spurious_interrupt_bug) pushl $TRAP_spurious_int<<16 jmp handle_exception + .pushsection .init.text, "ax", @progbits ENTRY(early_page_fault) SAVE_ALL(1f,1f) 1: movl %esp,%eax @@ -556,6 +557,7 @@ ENTRY(early_page_fault) call do_early_page_fault addl $4,%esp jmp restore_all_xen + .popsection handle_nmi_mce: #ifdef CONFIG_X86_SUPERVISOR_MODE_KERNEL diff --git a/xen/arch/x86/x86_64/entry.S b/xen/arch/x86/x86_64/entry.S index 27effbdae7..7c5fe92786 100644 --- a/xen/arch/x86/x86_64/entry.S +++ b/xen/arch/x86/x86_64/entry.S @@ -591,11 +591,13 @@ ENTRY(double_fault) call do_double_fault ud2 + .pushsection .init.text, "ax", @progbits ENTRY(early_page_fault) SAVE_ALL movq %rsp,%rdi call do_early_page_fault jmp restore_all_xen + .popsection handle_ist_exception: SAVE_ALL